#ifndef ANIMATION_H
#define ANIMATION_H

#include "sprite.h"

using namespace std;

class Animation
{
    public:
            Animation();
            Animation(Image *pSourceImage,
                      Vector2 frames,
                      Vector2 frameSize,
                      int numFrames,
                      int delay);
            void Draw(Vector2 position);
            void Update(int delta);

    private:
            Vector2 frames;
            Vector2 frameSize;
            int numFrames;
            int delay;
            int frameNumber;
            int timeWaited;
            Image *pSourceImage;
            void DrawFrame(int frameNumber, Vector2 position);
            void IncrementFrame(int incrementAmount = 1);
};


#endif
